// 自动生成模板PmsSkuSaleAttrValue
package biz

import "github.com/go-kratos/kratos/v2/log"

// pmsSkuSaleAttrValue表 结构体  PmsSkuSaleAttrValue
type PmsSkuSaleAttrValue struct {
	Id        *int    `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                //id
	SkuId     *int    `json:"skuId" form:"skuId" gorm:"comment:sku_id;column:sku_id;size:19;"`             //sku_id
	AttrId    *int    `json:"attrId" form:"attrId" gorm:"comment:attr_id;column:attr_id;size:19;"`         //attr_id
	AttrName  *string `json:"attrName" form:"attrName" gorm:"comment:销售属性名;column:attr_name;size:200;"`    //销售属性名
	AttrValue *string `json:"attrValue" form:"attrValue" gorm:"comment:销售属性值;column:attr_value;size:200;"` //销售属性值
	AttrSort  *int    `json:"attrSort" form:"attrSort" gorm:"comment:顺序;column:attr_sort;size:10;"`        //顺序
}

// TableName pmsSkuSaleAttrValue表 PmsSkuSaleAttrValue自定义表名 pms_sku_sale_attr_value
func (PmsSkuSaleAttrValue) TableName() string {
	return "pms_sku_sale_attr_value"
}

type PmsSkuSaleAttrValueRepo interface {
}

type PmsSkuSaleAttrValueUsecase struct {
	repo PmsSkuSaleAttrValueRepo
	log  *log.Helper
}

func NewPmsSkuSaleAttrValueRepo(repo GreeterRepo, logger log.Logger) *PmsSkuSaleAttrValueUsecase {
	return &PmsSkuSaleAttrValueUsecase{repo: repo, log: log.NewHelper(logger)}
}
